import request from '@/utils/request'
import data from '../../../views/pdf/content'

class DatasetApi {
  ///excel/getFileNameAndSheetNames
  getFileNameAndSheetNames() {
    return request({
      url: `/excel/getFileNameAndSheetNames`,
      method: 'get',

    })
  }
  getSheetData(params) {
    return request({
      url: `/excel/data`,
      method: 'post',
      data: params
    })
  }
  getColumnNames(params) {
    return request({
      url: `/excelData/getColumnNames?sheetName=${params}`,
      method: 'post'
    })
  }
  updateDataStatus(data) {
    return request({
      url: `/excelData/updateDataStatus`,
      method: 'post',
      data
    })
  }
  exportFiltered() {
    return request({
      url: `/excel/exportFiltered`,
      method: 'get',
      responseType: 'blob'
    })
  }
  addchangeData(data) {
    return request({
      url: `/changdata/add`,
      method: 'post',
      data
    })
  }
  getchangedetail(params) {
    return request({
      url: `/changdata/detail`,
      method: 'get',
      params
    })
  }
  deletechangeData(data) {
    return request({
      url: `/changdata/delete`,
      method: 'post',
      data
    })
  }
  updatechangeData(data) {
    return request({
      url: `/changdata/update`,
      method: 'post',
      data
    })
  }
  //changdata/update
  ///changdata/detail
  ////excel/exportFiltered
}

export default new DatasetApi()
